<template>
  <div class="app-container">
  

    <el-table  v-loading="loading" :data="statisticsList">
       <el-table-column label="发放地区" align="left" prop="area"  width="200"  />
       <el-table-column label="总数" align="center" prop="count"  />
       <el-table-column label="未注册数"  align="center" prop="unregistered" />
       <el-table-column label="在线数"  align="center" prop="onlineCount" />
    </el-table>
    <pagination
      v-show="total>0"
      :total="total"
      :page.sync="queryParams.pageNum"
      :limit.sync="queryParams.pageSize"
      @pagination="getStatisticsListInfo"
    />
  </div>
</template>
<script>
import { getStatisticsList, getStatisticsListMic } from "@/api/system/statistics";

export default {
  name: "oederStatistics",
  data() {
    return {
      // 遮罩层
      loading: true,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 总条数
      total: 0,
      // 分组管理表格数据
      groupList: [],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,

      statisticsList: [],

      machineReportData: {
        xData: [],
        statisticsYData: {}
      },
       // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
      },
      paramsForm: {
        yesterDay: null,
        sevenDay: null,
        month: null,
        startTime: null,
        endTime: null
        },
      // 表单参数
      form: {}
    };
  },
  created() {
    this.getStatisticsListInfo();
  },
  methods: {
    getStatisticsListInfo() {
       getStatisticsListMic().then(response => {
        this.statisticsList = response.rows;
        this.loading = false;
        this.total = response.total;
      });
    }
  }
};
</script>